<?php
$news = $this->news;
$query = $this->query;
$total = (int)$this->total;
?>
<style>
    .highlighted{background: yellow}
</style>
<?if (!empty($news)):?>
<ul data-role="pagination" style="z-index: 1000;" data-position="fixed">
	<li class="ui-pagination-prev"><a class="for-mobile-paginator"  data-direction="slide" href="<?=$this->leftrange?>">Prev</a></li>
	<li class="ui-pagination-next"><a class="for-mobile-paginator"  data-direction="slide" href="<?=$this->rightrange?>">Next</a></li>
</ul>
 <?endif?>
Вы искали: <?php echo $this->escape($query); ?>. Всего результатов: <b><?php echo $total ?></b>.

<?php if (is_array($news)): ?>
<ul data-role="listview"  data-inset="true" >
    <?foreach ($this->news as $news):?>
    <li>
        <div class="img" style="float: left;margin-right: 5px;">
                <a href="/mobile/viewnews/id/<?php echo $news['id'] ?>">
                <?php if (empty($article['img'])): ?>
                    <img src="http://placehold.it/100x100">
                <?php else: ?>
                    <img style="height: 100px;width:100px;" src="<?php echo $this->image($news['img']) ?>" alt="<?php echo $news['title'] ?>">
                <?php endif;  ?>
                </a>
            </div>
        <div>
            <h3 style="line-height: 18px;"><a href="/mobile/viewnews/id/<?php echo $news['id'] ?>">
                        <?= $news['title'] ?>
                    </a></h3>
             <p><?=$news['snippet']?></p>
         </div>
        <div style="clear:both;">
    </li>
    <?endforeach?>
</ul>
<?php endif; ?>



